import { http } from "@/utils/http";

type Result = {
  success: boolean;
  data?: {
    list: Array<any>;
    totalCount: number;
  };
  msg: string;
  status: Number;
};

/** 分页数据 */
export const ContestgetPage = (params?: object) => {
  return http.request<Result>("get", "/api/Contest/GetPage", {
    params
  });
};

//增加
export const Contestsave = (data?: object) => {
  return http.request<Result>("post", "/api/Contest/Save", { data });
};

//删除
export const Contestdelete = (params?: object) => {
  return http.request<Result>("post", "/api/Contest/Delete", { params });
};
